package com.linghang.lhonline.Util;

import com.linghang.lhonline.dataobject.Comment;

import java.util.Comparator;

public class CommentSortUtil implements Comparator {

    @Override
    public int compare(Object o1, Object o2) {
        Comment comment1 = (Comment) o1;
        Comment comment2 = (Comment) o2;

        return comment1.getPostTime().compareTo(comment2.getPostTime());
    }
}
